package cn.edu.Day06.Entity;

import javax.swing.*;
import java.awt.*;

public class Bullet {
    public static final Image IMG1;
    public static final Image IMG2;
    static {
        IMG1 = new ImageIcon("D:\\untitled\\src\\cn\\edu\\Day06\\img\\fire.gif").getImage();
        IMG2 = new ImageIcon("D:\\untitled\\src\\cn\\edu\\Day06\\img\\fire_1.gif").getImage();
    }

    public Bullet() {
        width = 20;
        height = 20;
        speed = 5;
    }

    private int x ;
    private int y ;
    private int width;
    private int height;
    private int speed;

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }
}
